Change xenbus callbacks to match new signature of xenbus_watch.
authoremellor@ewan <emellor@ewan>
Sun, 9 Oct 2005 10:52:24 +0000 (11:52 +0100)
committeremellor@ewan <emellor@ewan>
Sun, 9 Oct 2005 10:52:24 +0000 (11:52 +0100)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
linux-2.6-xen-sparse/arch/xen/kernel/reboot.c

index fddc705c7eb204acb777459dff8df031f06bf8c1..b83f136f700ba6bf15ab743b752b340975a97de5 100644 (file)
@@ -270,7 +270,8 @@ static void __shutdown_handler(void *unused)
        }
 }
 
-static void shutdown_handler(struct xenbus_watch *watch, const char *node)
+static void shutdown_handler(struct xenbus_watch *watch,
+                            const char **vec, unsigned int len)
 {
        static DECLARE_WORK(shutdown_work, __shutdown_handler, NULL);
        char *str;
@@ -315,7 +316,8 @@ static void shutdown_handler(struct xenbus_watch *watch, const char *node)
 }
 
 #ifdef CONFIG_MAGIC_SYSRQ
-static void sysrq_handler(struct xenbus_watch *watch, const char *node)
+static void sysrq_handler(struct xenbus_watch *watch, const char **vec,
+                         unsigned int len)
 {
        char sysrq_key = '\0';
        int err;
@@ -411,4 +413,3 @@ subsys_initcall(setup_shutdown_event);
  *  tab-width: 8
  * End:
  */
-#